projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1676b29
)
(single_submenu): Handle non-keymap lists like symbols.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 31 May 1996 20:10:02 +0000
(20:10 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 31 May 1996 20:10:02 +0000
(20:10 +0000)
src/xmenu.c
patch
|
blob
|
history
diff --git
a/src/xmenu.c
b/src/xmenu.c
index ef2bbd792acdce8f3ea0a1f6ad6bbfa5e0f817e3..1ea7140d50f6b6c5a64a92893c07fdac14b6ad9d 100644
(file)
--- a/
src/xmenu.c
+++ b/
src/xmenu.c
@@
-1377,8
+1377,12
@@
single_submenu (item_key, item_name, maps)
But don't make a pane that is empty--ignore that map instead. */
for (i = 0; i < len; i++)
{
- if (SYMBOLP (mapvec[i]))
+ if (SYMBOLP (mapvec[i])
+ || (CONSP (mapvec[i])
+ && NILP (Fkeymapp (mapvec[i]))))
{
+ /* Here we have a command at top level in the menu bar
+ as opposed to a submenu. */
top_level_items = 1;
push_menu_pane (Qnil, Qnil);
push_menu_item (item_name, Qt, item_key, mapvec[i], Qnil);